cc.Class({
    extends: cc.Component,

    properties: {

        swap: {
            url: cc.AudioClip,
            default: null
        },
        click: {
            url: cc.AudioClip,
            default: null
        },
        eliminate:{
            url: [cc.AudioClip],
            default: [],
        },
        continuousMatch:{
            url: [cc.AudioClip],
            default: []
        }
    },

    onLoad () {
        
    },

    start () {

    },
    playClick: function(){
        //cc.audioEngine.play(this.click, false, 1);
    },
    playSwap: function(){
        //cc.audioEngine.play(this.swap, false, 1);
    },
    playEliminate: function(step){
        // step = Math.min(this.eliminate.length - 1, step);
        // cc.audioEngine.play(this.eliminate[step], false, 1);
    },
    playContinuousMatch: function(step){
        // console.log("step = ", step);
        // step = Math.min(step, 11);
        // if(step < 2){
        //     return 
        // }
        // cc.audioEngine.play(this.continuousMatch[Math.floor(step/2) - 1], false, 1);
    }
});
